﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CBApprove.aspx.cs" Inherits="ProductContract.CBApprove" %>

<%@ Register Src="../../Processes/ProcessControl/UserInfo_TY.ascx" TagName="UserInfo"
    TagPrefix="ui" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory_TY.ascx" TagName="ApprovalHistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments_TY.ascx" TagName="Attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/ButtonList_TY.ascx" TagName="ButtonList"
    TagPrefix="btn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>生产采购类合同评审</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
                 $(document).ready(function () {
//                     if ($("#fld_TCONTRACTNO").text().length <= 16) {
//                         $("#fld_TCONTRACTNO").text("自动生成");
                     //                     }
                 });

                 function beforeSubmit() {
                     //选择同意判断合同编号
                     if ($("#ApprovalHistory1_rbApprove").attr('checked') == "checked") {
                         var No = $("#fld_TCONTRACTNO").val();
                         if ($.trim(No) == "") {
                             alert("合同编号不能为空！！！");
                             return false;
                         }
                     }
                     return true;
                 }
//        window.onload($("#").val("fld_TCONTRACTNO"));
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="row">
            <ui:userinfo id="UserInfo1" processtitle="生产采购类合同评审" processprefix="PC" tablename="PROC_PRODUCTCONTRACT"
                readonly="true" runat="server">
            </ui:userinfo>
        </div>
        <div class="row">
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner" colspan="4">
                        基础信息
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        合同名称：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TCONTRACTNAME" runat="server"></asp:Label>
                    </td>
                    <td class="td-label">
                        对方名称：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TSIDENAME" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        合同总金额：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TCONTRACTSPRICE" runat="server"></asp:Label>
                    </td>
                    <td class="td-label">
                        合同编号：<span class="red">*</span>
                    </td>
                    <td class="td-content">
                        <asp:TextBox runat="server" ID="fld_TCONTRACTNO"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        合同类型：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_TCONTRACTTYPE" runat="server">
                        </asp:Label>
                    </td>
                    <td colspan="2">
                    </td>
                    <%-- <td class="td-label">
                        业务类型：
                    </td>
                    <td class="td-content">
                          <asp:Label ID="fld_TBUSSNIESSTYPE" runat="server"  >
                           </asp:Label>
                    </td>--%>
                </tr>
                <tr>
                    <td class="td-label" style="vertical-align: middle">
                        签约对方情况:
                    </td>
                    <td colspan="3" style="vertical-align: middle">
                        <table class=" table-bordered" width="100%">
                            <tr>
                                <td width="15%" style="background-color: #f5f5f5;">
                                    法定代表人:
                                </td>
                                <td>
                                    <asp:Label runat="server" Width="80%" ID="fld_TLEGALPERSON"></asp:Label>
                                </td>
                                <td  width="15%" style="background-color: #f5f5f5;">
                                    注册资金:
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="fld_TREGISTEREDCAPITAL"></asp:Label>
                                </td>
                               <%-- <td width="10%" style="background-color: #f5f5f5;">
                                    代理人:
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="fld_TAGENT" Width="80%"></asp:Label>
                                </td>
                                <td width="10%" style="background-color: #f5f5f5;">
                                    代表权限:
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="fld_TBEHALFAUTHOR" Width="80%"></asp:Label>
                                </td>--%>
                            </tr>
                            <%--<tr>
                                
                                <td style="background-color: #f5f5f5;">
                                    资质:
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="fld_TINTELLIGENCE"></asp:Label>
                                </td>
                                <td style="background-color: #f5f5f5;">
                                    信誉:
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="fld_TCREDIT"></asp:Label>
                                </td>
                            </tr>--%>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        合同主要内容:
                    </td>
                    <td class="td-content" colspan="3">
                        <asp:Label runat="server" ID="fld_TCONTRACTCONTENT"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        相关人员:
                    </td>
                    <td class="td-content" colspan="3">
                        <asp:Label runat="server" ID="fld_TPERSONNEL"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row">
            <attach:attachments id="Attachments1" readonly="true" runat="server">
            </attach:attachments>
        </div>
        <div class="row">
            <ah:approvalhistory id="ApprovalHistory1" runat="server">
            </ah:approvalhistory>
        </div>
        <div class="row">
        </div>
    </div>
    <btn:buttonlist id="ButtonList1" runat="server">
    </btn:buttonlist>
    <div style="display: none;">
    </div>
    </form>
</body>
</html>
